package com.jason.lib.netowrk;

import retrofit2.Retrofit;

/**
 * Created by hacker on 17-6-28.
 */

public class RetrofitAPI {

    private Retrofit retrofit;

    private RetrofitAPI() {
    }

    public static RetrofitAPI getInstance() {
        return RetrofitAPIHolder.api;
    }

    public void initRetrofit(Retrofit retrofit) {
        this.retrofit = retrofit;
    }

    private static class RetrofitAPIHolder {
        private static RetrofitAPI api = new RetrofitAPI();
    }

}
